package com.base.common.edu.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * @Author Maple.Chen
 * @Description 角色定义实体
 * @Date 16:40 2021/1/25
 **/
@Data
@ApiModel(description = "角色定义实体")
@JsonIgnoreProperties(value = {"handler"})
public class SysRole implements Serializable {

    private static final long serialVersionUID = -6391034360684326545L;
    @ApiModelProperty( value = "角色ID")
    private String roleId;
    @ApiModelProperty( value = "角色名,需要前缀ROLE_")
    private String roleName;
    @ApiModelProperty( value = "教职工映射集合")
    private Set<Staff> staffs = new HashSet<Staff>();
    @ApiModelProperty( value = "角色组映射集合")
    private Set<SysGroup> sysGroups = new HashSet<SysGroup>();

}
